<!DOCTYPE html>
<html>
<head>
<title>培训实施管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.year" @keyup.enter="query" placeholder="年度">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.organizationDepartment" @keyup.enter="query" placeholder="组织部门">
			</div>
			<div class="form-group col-sm-2">
			<input type="text" id ="estimatedTime1" class="form-control" v-model="q.estimatedTime1" placeholder="预计开始日期"
				  onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"  onchange="zfDate1(this.value)"/>
			</div>
			<div class="form-group col-sm-2">
				<input type="text" id ="estimatedTime2"   class="form-control" v-model="q.estimatedTime2" placeholder="预计结束日期"
					   onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly" onchange="zfDate2(this.value)"
				/>
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("trainingimplementationmanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("trainingimplementationmanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("trainingimplementationmanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("trainingimplementationmanagement:fillResult"))
			<a class="btn btn-primary" @click="fillResult"><i class="fa fa-pencil-square-o"></i>&nbsp;培训结果</a>
			#end

		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-1 control-label">年度</div>
			   	<div class="col-sm-2">
					<input type="text" class="form-control" v-model="trainingImplementationManagement.year" placeholder="年度"
						   id="year" onClick="WdatePicker({dateFmt:'yyyy'})"  readonly="readonly"  onchange="yearChange(this.value)"
					/>
			    </div>

				<div class="col-sm-1 control-label">课程名称</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="trainingImplementationManagement.courseName" placeholder="课程姓名"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">学习形式</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="trainingImplementationManagement.learningType" placeholder="学习形式"/>
			    </div>

				<div class="col-sm-1 control-label">组织部门</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="trainingImplementationManagement.organizationDepartment" placeholder="组织部门"/>
				</div>
			</div>

									<!--<div class="form-group">
			   	<div class="col-sm-1 control-label">组织部门id</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="trainingImplementationManagement.organizationDepartmentId" placeholder="组织部门id"/>
			    </div>
			</div>-->
									<div class="form-group">
			   	<div class="col-sm-1 control-label">培训对象</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="trainingImplementationManagement.trainingTarget" placeholder="培训对象"/>
			    </div>

				<div class="col-sm-1 control-label">课程安排</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="trainingImplementationManagement.courseArrangement" placeholder="课程安排"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">预计日期</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="trainingImplementationManagement.estimatedTime" placeholder="预计日期"  onchange="zfDate(this.value)"
						 id="estimatedTime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
				  />
			    </div>
									</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">

			<div class="form-group">
			<div class="col-sm-1 control-label">实施日期</div>
			<div class="col-sm-2">
				<input type="text" class="form-control" placeholder="实施日期" v-model="trainingImplementationManagement.implementationDate"
					   id="implementationDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"  onchange="endDate(this.value)"
				/>
			</div>
				<div class="col-sm-1 control-label">授课人</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="trainingImplementationManagement.lecturer" placeholder="授课人"/>
				</div>

			</div>

	<div class="form-group">

		<div class="col-sm-1 control-label">参加人数</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" v-model="trainingImplementationManagement.participantsNumber" placeholder="参加人数"/>
		</div>

		<div class="col-sm-1 control-label">培训结果</div>
		<div class="col-sm-2">
			<input type="text" class="form-control" v-model="trainingImplementationManagement.trainingResult" placeholder="培训结果"/>
		</div>
	</div>



			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/hr/trainingimplementationmanagement.js?_${date.systemTime}"></script>
</body>
</html>